/*
 * DevicesTimer.c
 *
 *      Author: Honrun
 */
#include "CH58x_common.h"
#include "DevicesTimer.h"


int8_t cTimer3Init(void)
{
    TMR3_TimerInit(0xFFFFFFFF);

    TMR3_ITCfg(ENABLE, TMR0_3_IT_CYC_END);

    PFIC_SetPriority(TMR3_IRQn, 0);
    PFIC_EnableIRQ(TMR3_IRQn);

    return 0;
}
